﻿package com.petermacko.utils {
	public class FlashVars
	{
		public static function init(data:Object):void	{
			FlashVars.data = data||[];
		}
		public static function has(name:String):Boolean {
			return name in data;
		}
		public static function getValue(name:String):String {
			return data[name];
		}
		public static function getValueAsNumber(name:String):Number {
			return parseFloat(data[name]);
		}
		private static var data:Object;
	}
}
